package com.chenkaiwei.eurekaclientfeigndemo;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(value = "EUREKA-CLIENT-DATA-DEMO")
public interface DataRemoteClientFeign2 {
 //这就跟mybatis的Dao类很像了，写个接口就行，自动帮你装载/请求数据

    @GetMapping("/data/whoicalled")
//    @RequestMapping(value="/data/whoicalled", method= RequestMethod.GET)
    public String dataFromRemoteService();
}